package com.heima.zuoye.day05.timu4;

public class CalculatorDemo {
    public static void main(String[] args) {
        /*useCalculator(new Calculator() {
            @Override
            public int calc(int num) {
                return 0;
            }
        });*/

        useCalculator(num -> 0);
    }

    static void useCalculator(Calculator cll){
        int num = 0;
        cll.calc(num);
    }
}
